# num_list = [1,2,3,4,5,6,7,8,9,10] #初始化
# import random
# random.shuffle(num_list) #打乱
# print(num_list)
# num_list.sort() #升序
# print(num_list)
# num_list.sort(reverse=True) #降序
# print(num_list)


# books = ["abc","bca","cab","ddd","ABC","aaa","bbb","Abc","abC"]
# books.sort()#默认区分大小写，先排字母顺序A B C,再排大小写A a
# print(books)
# books.sort(key=str.lower)#不区分大小写
# print(books)


score = [15,25,65,95,35,66,35]
score_asc = sorted(score) #升序
print(score_asc)
print(score) #原列表不变
score_desc = sorted(score,reverse=True) #降序
print(score_desc)
print(score) #原列表不变










